#include "trap.h"
#include "basic_test.h"
    .set noat
    .globl main
    .text
main:
    ANDI_TEST(0x8061, 0x3360, 0xf91d)
    ANDI_TEST(0x555b, 0x05c6, 0xf5c6)
    ANDI_TEST(0x9fcc, 0x8a42, 0x0000)
    ANDI_TEST(0x0000, 0x0000, 0xa866)
    ANDI_TEST(0x45d5, 0xeda8, 0xffb0)

    ORI_TEST(0x0000, 0x0000, 0x7da6)
    ORI_TEST(0x8061, 0x3360, 0xadf9)
    ORI_TEST(0x1257, 0xc7a6, 0x2ab4)
    ORI_TEST(0x9fcc, 0x8a42, 0x0000)
    ORI_TEST(0x2a19, 0xdd40, 0xa870)

    XORI_TEST(0xd043, 0x9d20, 0x4488)
    XORI_TEST(0x0000, 0x0000, 0x8000)
    XORI_TEST(0xeca4, 0x85a1, 0xec5a)
    XORI_TEST(0x9fcc, 0x8a42, 0x0000)
    XORI_TEST(0x555b, 0x05c6, 0x5b5c)

    LUI_TEST(0x7fff)
    LUI_TEST(0x0000)
    LUI_TEST(0xbcf0)
    LUI_TEST(0x2957)
    LUI_TEST(0x8fff)
    HIT_GOOD_TRAP		# stop temu